import { defineStore } from 'pinia';

export const useCommentStore = defineStore('comment', {
  state: () => ({
    needRefresh: false
  }),
  actions: {
    setNeedRefresh(value: boolean) {
      this.needRefresh = value;
    }
  },
  persist: {
    key: 'portal-comment',
    storage: localStorage,
  },
});


export default useCommentStore;
